﻿using AutoMapper;
using B.S.DataBase.MyProject.Domain;
using B.S.DataBase.MyWrite.API.Appicant.Command;
using B.S.DataBase.MyWrite.API.Appicant.Command.Approval;
using B.S.DataBase.MyWrite.API.Appicant.Command.Roles;
using B.S.DataBase.MyWrite.API.Appicant.Command.Users;


namespace B.S.DataBase.MyProject.API
{
    public class AutoMapperFilePro : Profile
    {
        public AutoMapperFilePro()
        {
            CreateMap<AddUserCommand, User>().ReverseMap();
            CreateMap<AddRoleCommand, Role>().ReverseMap();


            CreateMap<CreateMenuCommends, Menu>().ReverseMap();
            CreateMap<UpDataMenuCommends, Menu>().ReverseMap();


            CreateMap<DelMenuCommends, Menu>().ReverseMap();


            CreateMap<CreateLeaveApplicationCommends, LeaveApplications>().ReverseMap();
            CreateMap<UpLeaveApplicationCommends, LeaveApplications>().ReverseMap();




            


        }
    }
}